package cn.itcast.user.service;

import cn.itcast.user.mapper.UserMapper;
import cn.itcast.user.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {

    @Autowired
    private UserMapper userMapper;

    public User queryById(int id) {
        return userMapper.findById(id);
    }

//    public re getuser(User user){
//        re r= new re();
//        r.setClassname( userMapper1.findById(r).getUsername());
//        return r;
//    }

    public User queryById1(int kid) {
        return userMapper.findById1(kid);
    }

//    public UserqueryById2(int kid) {
//        return userMapper.findById2(kid);
//    }

}
